package com.ts.feign.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ts.feign.dto.DiscussDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "ts-content" ,path = "/discuss",contextId = "discuss")
public interface DiscussService {

    //查询话题的分页信息
    @PostMapping("/list")
    public Page<DiscussDTO> list(@RequestBody Page<DiscussDTO> page);

    @PostMapping("/save")
    public void save(@RequestBody DiscussDTO discussDTO);
}
